

// Mobx 数据信息
import {observable,computed , action} from "mobx"

class MobxData{
    @observable userinfo = {}
    @observable noticeList = []
    @action  changeuserinfo = payload =>{
        this.userinfo = {...this.userinfo,...payload}
    }

    @action  resetuserinfo = () =>{
        this.userinfo = {}
    }
    @action getNoticeList = payload =>{
        this.noticeList = payload
    }
}

export default new MobxData()
